<template>
    <div class="login">
        <div class="contens">
            <div class="fd">
                <div class="top">
                    <img src="https://preview.axure6.com/194/images/%E7%99%BB%E5%BD%95/u434.png" alt="">
                </div>
                <div class="title">
                    <p>登录</p>
                </div>
                <div class="good">
                    <p>欢迎登录OA办公后台管理系统</p>
                </div>
                <!-- 输入框 -->
                <div class="inp">
                    <div class="ipt1">
                        <div class="pic">
                            <img :src="account" alt="">
                        </div>
                        <input id="txt1" type="text" placeholder="请输入手机号码或工号">
                        <div class="dele">
                            <img src="https://preview.axure6.com/194/images/%E7%99%BB%E5%BD%95/1_u421.svg" alt="">
                        </div>
                    </div>
                    <div class="ipt2">
                        <div class="iptpic">
                            <img :src="lock" alt="">
                        </div>
                        <el-input placeholder="请输入密码" v-model="input" show-password></el-input>
                    </div>
                </div>
                <!-- 单选框，协议 -->
                <div class="agreement">
                    <el-checkbox v-model="checked"></el-checkbox>
                    <span class="t1">我已阅读并同意</span>
                    <span class="t2">《用户隐私政策》</span>
                </div>
                <!-- 登录按钮 -->
                <div @click="jump()" class="logi">
                    <p>登录</p>
                </div>
                <!-- 忘记密码 -->
                <div class="password"><p>忘记密码请联系管理员</p></div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data(){
        return {
            account:"https://preview.axure6.com/194/images/%E7%99%BB%E5%BD%95/u422.svg" ,      
            //账号小人
            lock:'https://preview.axure6.com/194/images/%E7%99%BB%E5%BD%95/u427.svg',
            input: '',
            checked: true,  //单选框  
        }
    },
    methods:{
        jump(){
            this.$router.push('/about')
        }
    },
}
</script>

<style lang="scss" scoped>
*{
    margin: 0;
    padding: 0;
}

.login{
    height: 100vh;
    background-image: url('../assets/img/login.webp');
    background-size: cover;
    .contens{   //背景图片蒙层
        width: 100%;
        height: 100vh;
        position: relative; 
        background-color: rgba(0, 0, 0, 0.4); 
        backdrop-filter: blur(2px); /* 添加背景模糊效果 */
        .fd{
            border-width: 0px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); 
            width: 440px;
            height: 600px;
            background-color: rgba(255, 255, 255, 1);
            border: none;
            border-radius: 16px;
            .top{
                width: 440px;
                height: 120px;
                justify-content: center;
                display: flex;
                align-items: baseline;
                padding-top: 50px;
                box-sizing: border-box;
                img{
                    display: block;
                    text-align: center;
                    width: 88px;
                    height: 88px;
                }
            }
            .title {
                margin-top: 25px;
                p{
                font-weight: 500;
                font-style: normal;
                font-size: 30px;
                letter-spacing: 6px;
                
                }
            }
            .good{
                margin-top: 3px;
                p{
                    font-weight: 400;
                    font-style: normal;
                    font-size: 16px;
                    color: #999999;
                }
            }
            .inp{
                margin-top: 50px;
                .ipt1{
                    margin-left: 53px;
                    position: relative;
                    background-color: rgba(255, 255, 255, 1);
                    box-sizing: border-box;
                    border-width: 1px;
                    border-style: solid;
                    width: 335px;
                    height: 44px;
                    border-color: rgba(228, 228, 228, 1);
                    border-radius: 8px;
                    .dele{
                        position: absolute;
                        top: 10px;
                        right: 18px;
                    }
                    .pic{
                        position: absolute;
                        top: 10px;
                        left: 18px;
                    }
                    #txt1{
                        width: 169px;
                        height: 25px;                  
                        outline: none;
                        margin-top: 8px;
                        margin-left: -69px;
                        padding: 2px 2px 2px 2px;
                        box-sizing: border-box;
                        border: 0;
                    }
                }
                .ipt2{
                    margin-top: 20px;
                    margin-left: 53px;
                    position: relative;
                    background-color: rgba(255, 255, 255, 1);
                    box-sizing: border-box;
                    border-width: 1px;
                    border-style: solid;
                    width: 335px;
                    height: 44px;
                    border-color: rgba(228, 228, 228, 1);
                    border-radius: 8px;
                    .iptpic{
                        position: absolute;
                        top: 10px;
                        left: 17px;
                        z-index: 9;
                        img{
                            width: 16px;
                            height: 18px;
                        }
                    }
                }
                
            }
        }
    }
}
.agreement{
    margin-top: 30px;
    font-size: 14px;
    .t1{
        color: #C9C9C9;
    }
    .t2{
        color: #2561EF;
    }
}
.el-checkbox{
    margin-left: -70px;
    margin-right: 10px !important;
}
.logi{
    margin-top: 10px;
    margin-left: 53px;
    display: flex;
    justify-content: center;
    width: 335px;
    height: 44px;
    line-height: 44px;
    text-align:center;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    color: #FFFFFF;
    background-color: rgba(37, 97, 239, 1);
    border: none;
    border-radius: 8px;
}
.password{
    margin-top: 15px;
    font-size: 14px;
    color: #ccc;
}
::v-deep .el-input__inner{
    padding: 0 49px;
    border: 0;
}
input::placeholder {
    color: rgb(204, 204, 204); /* 现代浏览器 */
    opacity: 1; /* 确保opacity不是0 */
}
 
input::-webkit-input-placeholder { /* Chrome, Safari, Opera */
    color: rgb(204, 204, 204);
    opacity: 1;
}
 
input::-moz-placeholder { /* Firefox 19+ */
    color: rgb(204, 204, 204);
    opacity: 1;
}
 
input:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: rgb(204, 204, 204);
}
</style>